home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _67CC3F7632224D35824BE058AB33AF43 < prev    next >
Encoding:
Text File  |  2004-07-20  |  4.8 KB  |  208 lines

  1. // $TEXTURE1
  2. // $TEX1OPTIONSFILE
  3. // $DIRT
  4. // $DIRTOPTIONSFILE
  5. // $NORMALS
  6. // $NORMALSOPTIONSFILE
  7. // $SPECPOW
  8.  
  9. Shader()
  10. {
  11.     ShaderQuality(5)
  12.     Pass()
  13.     {
  14.         //lighting()
  15.         VertexShader("CarBR_CmCdDm_Bump_ps20.vsh")
  16.         Pixelshader("CarBR_CmCdDm_Bump_ps20.psh")
  17.  
  18.         !include("__Tex1.mtt")
  19.         !include("__Dirt.mtt")
  20.         !include("__CloudsVS.mtt")
  21.         !include("__TerrainColormapVS.mtt")
  22.         !include("__DynamicCubeMap.mtt")
  23.         !include("__DirtNormalsMap.mtt")
  24.  
  25.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  26.     }
  27.     Cull("cw")
  28. }
  29.  
  30. Shader()
  31. {
  32.     ShaderQuality(4)
  33.     Pass()
  34.     {
  35.         VertexShader("CarBR_CmCdDm_ps20.vsh")
  36.         Pixelshader("CarBR_CmCdDm_ps20.psh")
  37.  
  38.         !include("__Tex1.mtt")
  39.         !include("__Dirt.mtt")
  40.         !include("__CloudsVS.mtt")
  41.         !include("__TerrainColormapVS.mtt")
  42.         !include("__DynamicCubeMap.mtt")
  43.         !include("__DirtNormalsMap.mtt")
  44.  
  45.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  46.     }
  47.     Cull("cw")
  48. }
  49.  
  50.  
  51. shader()
  52. {
  53.     ShaderQuality(3)
  54.     pass()
  55.     {
  56.         //Lighting()
  57.         Pixelshader("CarBR_CmCd_ps14.psh")
  58.         Vertexshader("CarBR_CmCd_ps14.vsh")
  59.  
  60.         !include("__tex1.mtt")
  61.         !include("__Dirt.mtt")
  62.         !include("__TerrainColormapVS.mtt")
  63.         !include("__CloudsVS.mtt")
  64.         !include("__DynamicCubeMap.mtt")
  65.  
  66.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  67.     }
  68.     Cull("cw")
  69. }
  70.  
  71. shader()
  72. {
  73.     ShaderQuality(2)
  74.     pass()
  75.     {
  76.         //Lighting()
  77.         Pixelshader("CarBR_Cm_ps11.psh")
  78.         Vertexshader("CarBR_Cm_ps11.vsh")
  79.  
  80.         !include("__tex1.mtt")
  81.         !include("__Dirt.mtt")
  82.         !include("__TerrainColormapSmallVS.mtt")
  83.         !include("__DynamicCubeMap.mtt")        
  84.  
  85.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  86.     }
  87.     Cull("cw")
  88. }
  89.  
  90. shader()
  91. {
  92.     ShaderQuality(1)
  93.     pass()
  94.     {
  95.         //Lighting()
  96.         Pixelshader("CarBR_ps11.psh")
  97.         Vertexshader("CarBR_ps11.vsh")
  98.  
  99.         !include("__tex1.mtt")
  100.         !include("__Dirt.mtt")
  101.         !include("__TerrainColormapSmallVS.mtt")
  102.  
  103.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  104.     }
  105.     Cull("cw")
  106. }
  107.  
  108. //=========================== GF2 ======================================
  109. shader()
  110. {
  111.     ShaderQuality(2)
  112.  
  113.     pass()
  114.     {
  115.         Lighting()
  116.         tmu()
  117.         {
  118.             TexGen("planar")
  119.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  120.             texture()
  121.             {
  122.                 Image(%colortexturesmall)
  123.                 addressfunc("clamp", "clamp", "clamp")
  124.             }
  125.             ColorOp("mul_add", "texture_a", "current", "diffuse_a")
  126.             AlphaOp("arg1", "texture_a", "current", "current")
  127.         }
  128.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  129.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  130.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  131.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  132.         SpecularPow(0.0)
  133.                
  134.     }
  135.     lightpass()
  136.     !include("spot_spotmap.mtt")
  137.  
  138.     pass()
  139.     {
  140.         Lighting()
  141.         tmu()
  142.         {
  143.             Texture()
  144.             {
  145.                 Mapchannel(0)
  146.                 Image(DIRT_GF2)
  147.                 !include(DIRTOPTIONSFILE)
  148.             }
  149.             ColorOp("arg1", "tfactor", "current", "current")
  150.             AlphaOp("mul", "tfactor_a", "texture_a", "current")       
  151.         }
  152.         tmu()
  153.         {
  154.             Texture()
  155.             {
  156.                 Mapchannel(0)
  157.                 Image(TEXTURE1)
  158.                 !include(TEX1OPTIONSFILE)
  159.             }
  160.             ColorOp("blend_current_alpha", "current", "texture", "current")
  161.         }
  162.  
  163.         tfactor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  164.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
  165.    
  166.         AmbientColor(0.0, 0.0, 0.0, 1.0)
  167.         DiffuseColor(0.0, 0.0, 0.0, 1.0)
  168.         SpecularColor(%sunvisibility, %sunvisibility, %sunvisibility, 1.000)
  169.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  170.         SpecularPow(SPECPOW)                
  171.  
  172.         BlendFunc("zero", "src_color")
  173.     }
  174.  
  175.     Cull("cw")
  176. }
  177. //=======================================================
  178. /*
  179. shader()
  180. {
  181.     ShaderQuality(0)
  182.     pass()
  183.     {
  184.         Lighting()
  185.         Pixelshader("Common_specular.psh")
  186.         Vertexshader("Common_specular.vsh")
  187.         !include("__tex1.mtt")
  188.     }
  189.     Cull("cw")
  190. }
  191. */
  192. shader()
  193. {
  194.     ShaderQuality(0)
  195.     pass()
  196.     {
  197.         Lighting()
  198.         !include("__tex1.mtt")
  199.  
  200.         !include("__LightningColorsSpecGF2.mtt")                
  201.     }
  202. //    lightpass()
  203. //    !include("spot_spotmap.mtt")
  204.     
  205.     Cull("cw")
  206. }
  207.  
  208.